package com.example.supermarket_back.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.supermarket_back.utils.CommonUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloWord {

    @GetMapping("/test")
    public JSONObject test() {
            return CommonUtil.successJson("你好世界");
    }
}
